define(function() {
    return ['$scope','$rootScope','$timeout','$location','$interval','$state', function($scope, $rootScope,$timeout, $location,$interval,$state) {
        $(function() {
            $("#banner li").on("mouseover", function() {
                var i = $(this).index(); //当前索引值
                console.log(i);
                $(".bannerCon").css('display','none');
                $("#bannerCon"+(i+1)).css('display','block');
                $("#bannerCon"+(i+1)).on("mouseover", function() {
                    $(this).css('display','block')
                })
            })
            $('.center').on("mouseout",function() {
                $('.bannerCon').css('display','none');
            })
            // $("#banner li").on("mouseout", function() {
            //     var i = $(this).index(); //当前索引值
            //     console.log(i);
            //     $("#bannerCon"+(i+1)).css('display','none');
            // })
        })
        $scope.$apply();
    }];
});